package com.google.code.avajhelpdesk.entities;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

@Entity(name = "company")
public class Company extends BasicEntity {
	
	private static final long serialVersionUID = 1L;
	
	@Column(length=256)
	private String companyName;
	
	@OneToMany(mappedBy="company")
	private Set<Location> locations;
	
	@Column(length=1024)
	private String contactInfo;
	
	public String getCompanyName() {
		return companyName;
	}
	
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public Set<Location> getLocations() {
		return locations;
	}

	public void setLocations(Set<Location> locations) {
		this.locations = locations;
	}

	public String getContactInfo() {
		return contactInfo;
	}

	public void setContactInfo(String contactInfo) {
		this.contactInfo = contactInfo;
	}
}
